Fixed incorrect query() parameters, left over from the brief period of time when...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 17 Jan 2006 08:40:16 +0000 (08:40 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 17 Jan 2006 08:40:16 +0000 (08:40 +0000)
includes/Database.php

index dab3118..0a4b827 100644 (file)
@@ -705,7 +705,7 @@ class Database {
                $table = $this->tableName( $table );
                $sql = "UPDATE $table SET $var = '" .
                  $this->strencode( $value ) . "' WHERE ($cond)";
-               return (bool)$this->query( $sql, DB_MASTER, $fname );
+               return (bool)$this->query( $sql, $fname );
        }
 
        /**
@@ -870,7 +870,7 @@ class Database {
         */
        function fieldExists( $table, $field, $fname = 'Database::fieldExists' ) {
                $table = $this->tableName( $table );
-               $res = $this->query( 'DESCRIBE '.$table, DB_SLAVE, $fname );
+               $res = $this->query( 'DESCRIBE '.$table, $fname );
                if ( !$res ) {
                        return NULL;
                }